<template>
  <div>
    <h2> {{$store.state.count}}</h2>
    <h2> getters:{{$store.getters.pingfang}}</h2>
    <h2>大于20岁的学生:{{$store.getters.filterStu}}</h2>
    <h2>大于20岁的学生个数:{{$store.getters.filterStuLength}}</h2>

    <h2>大于?(自己传参)岁的学生个数:{{$store.getters.moreAgeStu(30)}}</h2>


  </div>
</template>

<script>
  export default {
    name: "HelloVuex"
    //父传子
   /* props:{
      count:Number
    }*/
  }
</script>

<style scoped>

</style>
